import request from '@/utils/request'

const aiDialogApi = {
    /**
     * 对话配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/setting/ai/dialog/detail'
        })
    },

    /**
     * 对话配置保存
     */
    save(params: {
        default_robot: string;
        currency_unit: string;
        win_watermark: string;
    }): Promise<any> {
        return request.post({
            url: '/setting/ai/dialog/save',
            params
        })
    }
}

export default aiDialogApi
